//
//  OriginImageView.m
//  SNS
//
//  Created by Bobo on 11-12-6.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import "OriginImageView.h"

@implementation OriginImageView

@synthesize doubleTapDelegate;
@synthesize doubleTapCallback;
@synthesize tapDelegate;
@synthesize tapCallback;

- (void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
    
	UITouch *touch = [touches anyObject];
    
    if (touch.tapCount > 1) {
        if (self.doubleTapDelegate && [self.doubleTapDelegate respondsToSelector:self.doubleTapCallback]) {
            [self.doubleTapDelegate performSelector:self.doubleTapCallback];
        }
    }
    else if (touch.tapCount == 1) {
        if (self.tapDelegate && [self.tapDelegate respondsToSelector:self.tapCallback]) {
            [self.tapDelegate performSelector:self.tapCallback];
        }
    }
}

@end
